cmake_minimum_required(VERSION 2.8)
project(Gimbal)

find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

# 查找Boost库
find_package(Boost REQUIRED COMPONENTS system)
# 包含Boost库的头文件目录
include_directories(${Boost_INCLUDE_DIRS})

add_executable(Gimbal main.cpp usart.cpp Gimbal.cpp Binarization.cpp recognize.cpp facerecognize.cpp)

# 链接Boost库和pthread库
target_link_libraries(Gimbal
                      ${OpenCV_LIBS}
                      ${Boost_LIBRARIES}
                      pthread)

